.notification-badge {
  cursor: pointer;
  margin-right: 16px;
}

.notification-icon {
  font-size: 18px;
  color: #666;
  transition: color 0.3s;
}

.notification-icon:hover {
  color: #1890ff;
}

.notification-popover-overlay {
  width: 400px;
}

.notification-popover {
  min-width: 350px;
  max-height: 500px;
  overflow: hidden;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}

.unread-badge {
  font-size: 12px;
  background: #fff2f0;
  color: #ff4d4f;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #ffccc7;
  font-weight: 500;
}

.notification-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 8px;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 16px !important;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f5f5f5;
}

.notification-item:hover {
  background-color: #f5f5f5;
}

.notification-item.unread {
  background-color: #fff2f0;
  border-left: 3px solid #ff4d4f;
}

.notification-item.unread:hover {
  background-color: #ffe7e6;
}

.notification-content {
  width: 100%;
}

.notification-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.notification-body {
  margin-bottom: 8px;
}

.notification-text {
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.notification-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-text.expanded {
  display: block;
  overflow: visible;
}

.expand-button {
  padding: 0;
  height: auto;
  font-size: 12px;
  color: #1890ff;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.expand-button:hover {
  color: #40a9ff;
}

.unread-dot {
  width: 8px;
  height: 8px;
  background-color: #ff4d4f;
  border-radius: 50%;
  margin-left: 8px;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}

.notification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-time {
  font-size: 12px;
}

.mark-read-icon {
  color: #52c41a;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
}

.mark-read-icon:hover {
  color: #389e0d;
}

.notification-empty {
  padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .notification-popover-overlay {
    width: 300px;
  }
  
  .notification-popover {
    min-width: 280px;
  }
  
  .notification-badge {
    margin-right: 8px;
  }
}
